home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / windows5 / winsrc17.zip / WINFRACT.H < prev    next >
C/C++ Source or Header  |  1991-10-31  |  7KB  |  254 lines

  1. /* file menu items */
  2.  
  3. #define ID_CANCEL    102
  4. #define     ID_GIF89A    113
  5. #define     ID_GIF87A    114
  6. #define     ID_BMP    115
  7. #define     IDM_NEW     100
  8. #define     IDM_OPEN     101
  9. #define     IDM_SAVE     102
  10. #define     IDM_SAVEAS     103
  11. #define     IDM_PRINT     104
  12. #define     IDM_MAPIN     115
  13. #define     IDM_MAPOUT     116
  14. #define     IDM_3D     113
  15. #define     IDM_3DOVER     114
  16. #define     IDM_EXIT     105
  17. #define     IDM_ABOUT     106
  18. #define     IDM_COPY     117
  19. #define     IDM_HELP_INDEX     107
  20. #define     IDM_HELP_KEYBOARD  108
  21. #define     IDM_HELP_HELP      109
  22. #define     ID_VERSION           110
  23. #define     ID_COMMENT           111
  24. #define     ID_FILETITLE       112
  25. #define     ID_LISTTITLE       112
  26.  
  27. /* Math Tools */
  28. #define     IDM_MATH_TOOLS    1001
  29. #define     IDM_COORD          1002
  30. #define     IDM_ZOOM          1003
  31. #define     IDM_SIZING          1004
  32. #define     IDM_TRACKING      1005
  33.  
  34. /* fractal image stuff */
  35.  
  36. #define     IDM_SIZE1     151
  37. #define     IDM_SIZE2     152
  38. #define     IDM_SIZE3     153
  39. #define     IDM_SIZE4     154
  40. #define     IDM_ITER1     161
  41. #define     IDM_ITER2     162
  42. #define     IDM_ITER3     163
  43.  
  44. /* fractal formula stuff */
  45.  
  46. #define     IDM_FRACTAL  171
  47. #define     IDM_FORMULA  172
  48. #define     IDM_IMAGE     173
  49. #define     IDM_DOODADS  174
  50. #define     IDM_CYCLE     175
  51.  
  52. #define     ID_FRACNAME    200
  53. #define     ID_FRACPARAM1  201
  54. #define     ID_FRACPARAM2  202
  55. #define     ID_FRACPARAM3  203
  56. #define     ID_FRACPARAM4  204
  57. #define     ID_FRACPARTX1  205
  58. #define     ID_FRACPARTX2  206
  59. #define     ID_FRACPARTX3  207
  60. #define     ID_FRACPARTX4  208
  61. #define     ID_FRACXMIN    211
  62. #define     ID_FRACXMAX    212
  63. #define     ID_FRACYMIN    213
  64. #define     ID_FRACYMAX    214
  65.  
  66. /* window sizing stuff */
  67.  
  68. #define     ID_ISIZE       250
  69. #define     ID_ISIZE1       251
  70. #define     ID_ISIZE2       252
  71. #define     ID_ISIZE3       253
  72. #define     ID_ISIZE4       254
  73. #define     ID_ISIZE5       255
  74. #define     ID_ISIZE6       256
  75. #define     ID_ISIZE7       257
  76. #define     ID_ISIZE8       258
  77. #define     ID_ISIZEX       259
  78. #define     ID_ISIZEY       260
  79. #define     ID_ICOLORS       270
  80. #define     ID_ICOLORS1    271
  81. #define     ID_ICOLORS2    272
  82. #define     ID_ICOLORS3    273
  83.  
  84. /* options and doodads menu */
  85.  
  86. #define     ID_DEBUGFLAG   290
  87. #define     ID_PASS       300
  88. #define     ID_PASS1       301
  89. #define     ID_PASS2       302
  90. #define     ID_PASSS       303
  91. #define     ID_PASSB       304
  92. #define     ID_MATH       305
  93. #define     ID_MATHI       306
  94. #define     ID_MATHF       307
  95. #define     ID_MAXIT       310
  96. #define     ID_BIOMORPH    311
  97. #define     ID_DECOMP       312
  98. #define     ID_INSIDE       313
  99. #define     ID_OUTSIDE       314
  100. #define     ID_INVERT       315
  101.  
  102. /* Color-Cycling stuff */
  103.  
  104. #define     ID_CYCLEOFF    330
  105. #define     ID_CYCLEON       331
  106. #define     ID_CYCLEOUT    332
  107. #define     ID_CYCLEIN       333
  108. #define     ID_CYCLESTAT   334
  109. #define     ID_CYCLECHG    335
  110. #define     ID_CYCLELOW    336
  111. #define     ID_CYCLEMED    337
  112. #define     ID_CYCLEHIGH   338
  113.  
  114. /* 3D stuff */
  115. #define     ID_PREVIEW       201
  116. #define     ID_SHOWBOX       202
  117. #define     ID_SPHERICAL   203
  118. #define     ID_PREVIEWFACTOR 204
  119. #define     ID_STEREO1       205
  120. #define     ID_STEREO2       206
  121. #define     ID_STEREO3       207
  122. #define     ID_STEREO4       208
  123. #define     ID_FILL1       211
  124. #define     ID_FILL2       212
  125. #define     ID_FILL3       213
  126. #define     ID_FILL4       214
  127. #define     ID_FILL5       215
  128. #define     ID_FILL6       216
  129. #define     ID_FILL7       217
  130. #define     ID_FILL8       218
  131.  
  132. #define     ID_ANS1       201
  133. #define     ID_ANS2       202
  134. #define     ID_ANS3       203
  135. #define     ID_ANS4       204
  136. #define     ID_ANS5       205
  137. #define     ID_ANS6       206
  138. #define     ID_ANS7       207
  139. #define     ID_ANS8       208
  140. #define     ID_ANS9       209
  141. #define     ID_ANS10       210
  142. #define     ID_ANS11       211
  143. #define     ID_ANS12       212
  144. #define     ID_ANS13       213
  145. #define     ID_ANS14       214
  146. #define     ID_ANS15       215
  147.  
  148. /* generic fullscreen stuff */
  149.  
  150. #define     ID_PROMPT00    300
  151. #define     ID_PROMPT01    301
  152. #define     ID_PROMPT02    302
  153. #define     ID_PROMPT03    303
  154. #define     ID_PROMPT04    304
  155. #define     ID_PROMPT05    305
  156. #define     ID_PROMPT06    306
  157. #define     ID_PROMPT07    307
  158. #define     ID_PROMPT08    308
  159. #define     ID_PROMPT09    309
  160. #define     ID_PROMPT10    310
  161. #define     ID_PROMPT11    311
  162. #define     ID_PROMPT12    312
  163. #define     ID_PROMPT13    313
  164. #define     ID_PROMPT14    314
  165. #define     ID_PROMPT15    315
  166. #define     ID_PROMPT16    316
  167. #define     ID_PROMPT17    317
  168. #define     ID_PROMPT18    318
  169. #define     ID_PROMPT19    319
  170. #define     ID_ANSWER01    321
  171. #define     ID_ANSWER02    322
  172. #define     ID_ANSWER03    323
  173. #define     ID_ANSWER04    324
  174. #define     ID_ANSWER05    325
  175. #define     ID_ANSWER06    326
  176. #define     ID_ANSWER07    327
  177. #define     ID_ANSWER08    328
  178. #define     ID_ANSWER09    329
  179. #define     ID_ANSWER10    330
  180. #define     ID_ANSWER11    331
  181. #define     ID_ANSWER12    332
  182. #define     ID_ANSWER13    333
  183. #define     ID_ANSWER14    334
  184. #define     ID_ANSWER15    335
  185. #define     ID_ANSWER16    336
  186. #define     ID_ANSWER17    337
  187. #define     ID_ANSWER18    338
  188. #define     ID_ANSWER19    339
  189.  
  190.  
  191. /* status box */
  192.  
  193. #define     IDS_STATUS      340
  194. #define     IDS_LINE1      341
  195. #define     IDS_LINE2      342
  196. #define     IDS_LINE3      343
  197. #define     IDS_LINE4      344
  198. #define     IDS_LINE5      345
  199. #define     IDS_LINE6      346
  200. #define     IDS_LINE7      347
  201. #define     IDS_LINE8      348
  202. #define     IDS_LINE9      349
  203.  
  204. /* Control IDs */
  205.  
  206. #define     IDC_FILENAME  400
  207. #define     IDC_EDIT      401
  208. #define     IDC_FILES      402
  209. #define     IDC_PATH      403
  210. #define     IDC_LISTBOX   404
  211.  
  212. /* Print stuff */
  213.  
  214. #define     ID_PR_DEVICE  450
  215. #define     ID_PR_ORIENT  451
  216. #define     ID_PRO_PORTR  452
  217. #define     ID_PRO_LANDS  453
  218. #define     ID_PR_SIZE      454
  219. #define     ID_PRS_MAX      455
  220. #define     ID_PRS_MAXSIZ 456
  221. #define     ID_PRS_CUST   457
  222. #define     ID_PRS_WIDTH  458
  223.  
  224. int PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
  225. BOOL InitApplication(HANDLE);
  226. BOOL InitInstance(HANDLE, int);
  227. long FAR PASCAL MainWndProc(HWND, unsigned, WORD, LONG);
  228. BOOL FAR PASCAL SaveStatusProc(HWND, unsigned, WORD, LONG);
  229. BOOL FAR PASCAL About(HWND, unsigned, WORD, LONG);
  230. BOOL FAR PASCAL HelpBox(HWND, unsigned, WORD, LONG);
  231. BOOL FAR PASCAL SaveAsDlg(HWND, unsigned, WORD, LONG);
  232. BOOL FAR PASCAL SelectFractal(HWND, unsigned, WORD, LONG);
  233. BOOL FAR PASCAL SelectFracParams(HWND, unsigned, WORD, LONG);
  234. BOOL FAR PASCAL SelectImage(HWND, unsigned, WORD, LONG);
  235. BOOL FAR PASCAL SelectDoodads(HWND, unsigned, WORD, LONG);
  236. BOOL FAR PASCAL SelectCycle(HWND, unsigned, WORD, LONG);
  237. BOOL FAR PASCAL Select3D(HWND, unsigned, WORD, LONG);
  238. BOOL FAR PASCAL Select3DPlanar(HWND, unsigned, WORD, LONG);
  239. BOOL FAR PASCAL Select3DSpherical(HWND, unsigned, WORD, LONG);
  240. BOOL FAR PASCAL SelectFullScreen(HWND, unsigned, WORD, LONG);
  241. BOOL FAR PASCAL Status(HWND, unsigned, WORD, LONG);
  242. HANDLE FAR PASCAL OpenDlg(HWND, unsigned, WORD, LONG);
  243. void SeparateFile(HWND, LPSTR, LPSTR, LPSTR);
  244. void UpdateListBox(HWND);
  245. void AddExt(PSTR, PSTR);
  246. void ChangeDefExt(PSTR, PSTR);
  247. HDC PASCAL GetPrinterDC();
  248. void OpenStatusBox(HWND hWnd, HANDLE hInst);
  249. void CloseStatusBox(void);
  250. void UpdateStatusBox(unsigned long Portion, unsigned long Total);
  251. extern char StatusTitle[];
  252. void SaveBitmapFile(HWND hWnd, char *FullPathName);
  253.  
  254.